--
-- Author: shunguo.chen
-- Date: 2016-10-19 17:42:49
--
-- RewardOnlinePanel

local RewardOnlineRender = import(".renders.RewardOnlineRender")

local ClassRef = app.mvc.createPanelClass(...)

function ClassRef.create(node)
	local sprite = ClassRef.extend(node or cc.CSLoader:createNode(Res.RewardOnlinePanel))
	if node == nil then
		ccui.Helper:doLayout(sprite)
	end
	sprite:init()
	return sprite
end 

function ClassRef:init(data)
	self.super.init(self, data)
	
	self._items = {
		RewardOnlineRender.create(self._ui.Panel_1),
		RewardOnlineRender.create(self._ui.Panel_2),
	}
end

function ClassRef:getItems()
	return self._items
end

return ClassRef